<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets" 
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:t="https://code.google.com/p/rad-framework/taglib" 
	xmlns:tt="https://code.google.com/p/rad-framework"
	xmlns:s="http://jboss.com/products/seam/taglib">

	<a4j:form id="quickForm#{folder.id}">

		<h:panelGrid columns="1" cellspacing="0" width="100%">
			<h:panelGroup>
			<ui:insert name="quickbuttons">
				<a4j:commandLink id="saveButton#{folder.id}" type="submit"
					eventsQueue="viewQ" action="#{folder.save}" reRender="#{folder.id}TP"
					styleClass="rad-framework-button-content">
					<s:conversationId />
					<span>
						<h:outputText value="#{messages['Add']}" rendered="#{folder.renderQuickAdd}" />
						<h:outputText value="#{messages['Save']}" rendered="#{folder.renderOneToOneEdit}" />
					</span>
				</a4j:commandLink>
			</ui:insert>
			</h:panelGroup>
		</h:panelGrid>

		<tt:validate-panel>
			<ui:include
				src="/#{viewPath == null ? 'jsf' : viewPath}/#{folder.viewPath}#{folder.entityType}/EditPanel.xhtml">
				<ui:param name="entity" value="#{folder.selected}" />
				<ui:param name="label" value="#{messages['General']}" />
			</ui:include>
		</tt:validate-panel>
		
	</a4j:form>

</ui:composition>